﻿using System.Threading.Tasks;
using WeiboWPSdk.Json;
using WeiboWPSdk.ResponseEntity;

namespace WeiboWPSdk.Api {
    public class RemindApi : ApiBase {
        public RemindApi(ClientHttpHelper httpHelper)
            : base(httpHelper) {
        }

        #region 读取接口
        /// <summary>
        /// 获取某个用户的各种消息未读数
        /// http://open.weibo.com/wiki/2/remind/unread_count
        /// </summary>
        /// <returns></returns>
        public async Task<Remind> GetUnreadCountAsync() {
            var json = await HttpHelper.GetSpecialCommandAsync("remind/unread_count");
            return JsonConvert.DeserializeObject<Remind>(json);
        }
        #endregion
    }
}
